package cn.fsd.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Stock_in_out_record {
    private String record_id;

    private Integer record_type;

    private String commodity_id;

    private String storeroom_id;

    private Integer transfer_sum;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") //处理响应
    @DateTimeFormat(pattern = "yyyy-MM-dd") //处理请求
    private Date stock_in_out_date;

    private Long amount;

    private String task_id;

    private String operator_id;

    public String getRecord_id() {
        return record_id;
    }

    public void setRecord_id(String record_id) {
        this.record_id = record_id == null ? null : record_id.trim();
    }

    public Integer getRecord_type() {
        return record_type;
    }

    public void setRecord_type(Integer record_type) {
        this.record_type = record_type;
    }

    public String getCommodity_id() {
        return commodity_id;
    }

    public void setCommodity_id(String commodity_id) {
        this.commodity_id = commodity_id == null ? null : commodity_id.trim();
    }

    public String getStoreroom_id() {
        return storeroom_id;
    }

    public void setStoreroom_id(String storeroom_id) {
        this.storeroom_id = storeroom_id == null ? null : storeroom_id.trim();
    }

    public Integer getTransfer_sum() {
        return transfer_sum;
    }

    public void setTransfer_sum(Integer transfer_sum) {
        this.transfer_sum = transfer_sum;
    }

    public Date getStock_in_out_date() {
        return stock_in_out_date;
    }

    public void setStock_in_out_date(Date stock_in_out_date) {
        this.stock_in_out_date = stock_in_out_date;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public String getTask_id() {
        return task_id;
    }

    public void setTask_id(String task_id) {
        this.task_id = task_id == null ? null : task_id.trim();
    }

    public String getOperator_id() {
        return operator_id;
    }

    public void setOperator_id(String operator_id) {
        this.operator_id = operator_id == null ? null : operator_id.trim();
    }
}